package org.boyan.modules.cgform.model;

/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 12:25
 */

public class TreeModel {
    private String label;

    private String store;

    private String id;

    private String pid;

    public void setLabel(String label) {
        this.label = label;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof TreeModel))
            return false;
        TreeModel treeModel = (TreeModel)o;
        if (!treeModel.canEqual(this))
            return false;
        String str1 = getLabel(), str2 = treeModel.getLabel();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2))
            return false;
        String str3 = getStore(), str4 = treeModel.getStore();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4))
            return false;
        String str5 = getId(), str6 = treeModel.getId();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6))
            return false;
        String str7 = getPid(), str8 = treeModel.getPid();
        return !((str7 == null) ? (str8 != null) : !str7.equals(str8));
    }

    protected boolean canEqual(Object other) {
        return other instanceof TreeModel;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        String var3 = this.getLabel();
        int var7 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getStore();
        var7 = var7 * 59 + (var4 == null ? 43 : var4.hashCode());
        String var5 = this.getId();
        var7 = var7 * 59 + (var5 == null ? 43 : var5.hashCode());
        String var6 = this.getPid();
        var7 = var7 * 59 + (var6 == null ? 43 : var6.hashCode());
        return var7;
    }

    @Override
    public String toString() {
        return "TreeModel(label=" + getLabel() + ", store=" + getStore() + ", id=" + getId() + ", pid=" + getPid() + ")";
    }

    public String getLabel() {
        return this.label;
    }

    public String getStore() {
        return this.store;
    }

    public String getId() {
        return this.id;
    }

    public String getPid() {
        return this.pid;
    }
}
